package be.florent.brol.client.places;

import com.google.gwt.place.shared.Place;
import com.google.gwt.place.shared.PlaceTokenizer;

public class MyPlace extends Place {

	private String name;
	
	public MyPlace(String token) {
		this.name = token;
	}
	
	public String getToken() {
		return name;
	}
	
	 public static class Tokenizer implements PlaceTokenizer<MyPlace> {
		@Override
		public MyPlace getPlace(String token) {
			return new MyPlace(token);
		}
		@Override
		public String getToken(MyPlace place) {
			return place.getToken();
		}
	 }
		 
}
